package cate.common.table.item.inscription.row;

import cate.common.table.EExcelNoteField;
import cate.common.table.EExcelRowClass;
import cate.common.table.ERow;
import cate.common.table.item.IBagItemTpl;

@EExcelRowClass
public class InscriptionBaseRow extends ERow implements IBagItemTpl {
    @EExcelNoteField(fieldName = "下级ID", defaultValue = "0")
    public int nextId;
    @EExcelNoteField(fieldName = "原型ID")
    public int protoId;
    @EExcelNoteField(fieldName = "铭文名称")
    public String name;
    @EExcelNoteField(fieldName = "等级")
    public int level;
    @EExcelNoteField(fieldName = "品质")
    public int quality;
    @EExcelNoteField(fieldName = "类型")
    public int pageType;
    @EExcelNoteField(fieldName = "子类型")
    public int detailType;
    @EExcelNoteField(fieldName = "固定属性")
    public String fixedAttr;
    @EExcelNoteField(fieldName = "百分比属性")
    public String percentAttr;
    @EExcelNoteField(fieldName = "技能", defaultValue = "0")
    public int skillId;
    @EExcelNoteField(fieldName = "升级消耗")
    public String levelUpCost;
    @EExcelNoteField(fieldName = "分解获得")
    public String backReward;
    @EExcelNoteField(fieldName = "最大堆叠数量", defaultValue = "1")
    public int pileMax;
    @EExcelNoteField(fieldName = "可装备数量", defaultValue = "0")
    public int limitNum;

    @Override
    public String getName() {
        return name;
    }

    @Override
    public int getTemplateId() {
        return id;
    }

    @Override
    public long getPileMax() {
        return pileMax;
    }

    @Override
    public boolean unique() {
        return pileMax == 1;
    }
}
